﻿<html DIR="LTR" xmlns:tool="http://www.microsoft.com/tooltip" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
  <head>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8" />
    <META NAME="save" CONTENT="history" />
    <title>Deploying the JDBC Driver</title>
    
    <link rel="stylesheet" type="text/css" href="../local/Classic.css">
      
    </link>
    
    <script src="../local/script.js">
      
    </script><script src="../local/script_main.js">&amp;nbsp;</script>
  </head>
  <body>
    <!--Topic built:03/26/2010 02:49:39-->

    
    
    
    
    
    
    
    
    
    <div id="header">
      <table width="100%" id="topTable"><tr>
          <td align="left">
            <span id="headerBold">Deploying the JDBC Driver</span>
          </td>
          <td align="right">
            
          </td>
        </tr></table>
      
      
      
    </div>
    <div id="mainSection">
      
        
        
    <font color="DarkGray">
      
    </font>
    <p />
    
    <p />
  
        <div id="introductionSection" class="section">
    <p>When you deploy an application that depends on the Microsoft SQL Server JDBC Driver, you must redistribute the JDBC driver together with your application. Unlike Windows Data Access Components (Windows DAC), which is a component of the Windows operating system, the JDBC driver is considered to be a component of SQL Server.  </p>
    <div style="margin: .5em 1.5em .5em 1.5em"><b>Note: </b>
      Although you can freely distribute the JDBC driver as your application requires, you must first register to do this. To register to redistribute the JDBC driver, see <a href="http://go.microsoft.com/fwlink/?LinkId=111571" target="_blank" alt=""><linkText xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">Register for Microsoft SQL Server JDBC Driver Redistribution Rights</linkText></a>.<p />
    </div>
    <p>There are two approaches to deploying the JDBC driver with your application. One is to include the JDBC driver files as part of your own custom installation package. The second approach involves using the JDBC installation package provided by Microsoft, which you can download from the <a href="http://go.microsoft.com/fwlink/?LinkId=70166" target="_blank" alt=""><linkText xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">Microsoft SQL Server JDBC Driver Developer Center</linkText></a>.</p>
    <p>The following sections discuss how to use the JDBC installation package on Windows and UNIX operating systems.</p>
    <div style="margin: .5em 1.5em .5em 1.5em"><b>Note: </b>
      For information about deploying Java applications in general, see the <a href="http://go.microsoft.com/fwlink/?LinkId=70165" target="_blank" alt=""><linkText xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">Java Deployment Overview</linkText></a> on the Sun Microsystems Web site.<p />
    </div>
  </div><h1 class="heading">Deploying the JDBC Driver on Windows Systems</h1><div id="sectionSection0" class="section"><content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
      <p xmlns="">When you deploy the JDBC driver on Windows operating systems, you must use the executable zip file version of the installation package, which is typically named <code>sqljdbc_&lt;version&gt;_&lt;language&gt;.exe</code>.</p>
      <p xmlns="">To run the executable zip file silently, you must use the<code> /auto </code>command-line option on the command line or in a batch file as in the following:</p>
      <p xmlns="">
        <code>sqljdbc_&lt;version&gt;_&lt;language&gt;.exe /auto</code>
      </p>
      <div style="margin: .5em 1.5em .5em 1.5em" xmlns=""><b>Note: </b>
        When you use the<code> /auto </code>option it is not a truly silent installation, as a WinZip dialog box still appears on the user's screen. However, you will not need to interact with it and it closes as soon as the unzip operation is complete.<p />
      </div>
    </content></div><h1 class="heading">Deploying the Driver on UNIX Systems</h1><div id="sectionSection1" class="section"><content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
      <p xmlns="">When you deploy the JDBC driver on UNIX operating systems, you must use the gzip file version of the installation package, which is typically named <code>sqljdbc_&lt;version&gt;_&lt;language&gt;.tar.gz</code>.</p>
      <p xmlns="">Before you install the JDBC driver, make sure that both the gzip and tar utilities are installed on the user's system, and that the folders that contain the executables for both utilities are added to the PATH environment variable.</p>
      <p xmlns="">To unpack the zipped tar file, navigate to the directory where you want the driver unpacked and type the following command:</p>
      <p xmlns="">
        <code>gzip -d sqljdbc_&lt;version&gt;_&lt;language&gt;.tar.gz</code>
      </p>
      <p xmlns="">To unpack the tar file, move it to the directory where you want the driver installed and type the following command:</p>
      <p xmlns="">
        <code>tar –xf sqljdbc_&lt;version&gt;_&lt;language&gt;.tar</code>
      </p>
    </content></div><span id="seeAlsoSpan"><h1 class="heading">See Also</h1></span><div id="seeAlsoSection" class="section" name="collapseableSection"><a href="939a8773-2583-49a4-bf00-6b892fbe39dc.htm">Overview of the JDBC Driver</a><br /><br /></div><!--[if gte IE 5]>
			<tool:tip element="seeAlsoToolTip" avoidmouse="false"/><tool:tip element="languageFilterToolTip" avoidmouse="false"/><tool:tip element="roleInfoSpan" avoidmouse="false"/>
		<![endif]-->
      <div id="footer" class="section">
        
		<hr />
		
		<span id="fb" class="feedbackcss">
			
			
		</span>
		
		<a href="9bad553b-9e70-4696-8499-2e35f772a1e0.htm">
			
			© 2010 Microsoft Corporation. All rights reserved.
		</a>
 	
	
      </div>
    </div>
  </body>
</html>